package com.zzyl.nursing.job;

import com.zzyl.nursing.service.member.IMemberReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ReservationJob {
    @Autowired
    private IMemberReservationService reservationService;

    public void updateReservationStatus() {
        reservationService.updateReservationStatus();
        log.info("定时更新预约状态成功！");
    }
}
